import { createPinia } from "pinia";
import useUserStore from "./module/user";
import piniaPersist from "pinia-plugin-persist"; // 持久化储存,按需使用

export const pinia = createPinia().use(piniaPersist);
export const useStore = () => {
  return {
    user: useUserStore(),
  };
};
